﻿
Imports centrosphere

Public Module planet
    Private Const defaultConfigfile As String = "planet.ini"

    'for imitation
    Public Sub registerComponents()
        componentGenerator.register(Of simpleJobConsumer)()
        componentGenerator.register(Of storageJobConsumer)()
        componentGenerator.register(Of cacheslice)()
        componentGenerator.register(Of mapslice)()
        componentGenerator.register(Of diskslice1)()
        componentGenerator.register(Of diskslice2)()
        componentGenerator.register(Of diskslice3)()
        componentGenerator.register(Of diskslice4)()

        componentInitializer.register(Of storageJobConsumer)(AddressOf storageJobConsumer.initial)
        componentInitializer.register(Of cacheslice)(AddressOf cacheslice.initial)
        componentInitializer.register(Of mapslice)(AddressOf mapslice.initial)
        componentInitializer.register(Of diskslice1)(AddressOf diskslice1.initial)
        componentInitializer.register(Of diskslice2)(AddressOf diskslice2.initial)
        componentInitializer.register(Of diskslice3)(AddressOf diskslice3.initial)
        componentInitializer.register(Of diskslice4)(AddressOf diskslice4.initial)
    End Sub

    Public Sub main(ByVal args() As String)
        universeMain(defaultConfigfile, AddressOf registerComponents, args)
    End Sub
End Module
